package com.hxht.storage.server.pojo;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
//@Table(schema="storage")
public class VideoDeviceChannelInfo extends BaseEntity{

	@OneToOne(mappedBy = "videoDeviceChannel")
	private BaseRecordInfo manualRecord;
	
	/** 取流模式<br/>
     *  1-直接从设备取流，2-通过URL取流 */
    private Integer streamMode;
    
    /** 传输码流模式:<br/>
     * 0-主码流，1-子码流，streamMode为2时，可忽略此参数
     */
    private Integer transMode;
    
    /**  取流URL路径，streamMode为1时，可忽略此参数 */
    private String streamUrl; 
    
    /** 流传输协议
     * 0:tcp<br/>
     * 1:udp<br/>
	 * 2:组播 <br/>
	 * */
    private Integer protocol;
    
    private Integer videoServerChannelIndex;
    
    @Transient
    private String username;
    
    @Transient
    private Integer port;
    
    @Transient
    private String passwd;
    
    public VideoDeviceChannelInfo(){}

	public BaseRecordInfo getManualRecord() {
		return manualRecord;
	}

	public void setManualRecord(BaseRecordInfo manualRecord) {
		this.manualRecord = manualRecord;
	}

	public Integer getStreamMode() {
		return streamMode;
	}

	public void setStreamMode(Integer streamMode) {
		this.streamMode = streamMode;
	}

	public Integer getTransMode() {
		return transMode;
	}

	public void setTransMode(Integer transMode) {
		this.transMode = transMode;
	}

	public String getStreamUrl() {
		return streamUrl;
	}

	public void setStreamUrl(String streamUrl) {
		this.streamUrl = streamUrl;
	}

	public Integer getProtocol() {
		return protocol;
	}

	public void setProtocol(Integer protocol) {
		this.protocol = protocol;
	}

	public Integer getVideoServerChannelIndex() {
		return videoServerChannelIndex;
	}

	public void setVideoServerChannelIndex(Integer videoServerChannelIndex) {
		this.videoServerChannelIndex = videoServerChannelIndex;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	
}
